package com.zzf.concurrent.example.single;

/**
 * 饿汉式单例bean，在类加载的时候进行bean的创建。
 * @author GaoFeng2017
 * @date 2019/8/12 19:14
 */
public class DirectInitSingleBean {

    private final static DirectInitSingleBean INSTANCE = new DirectInitSingleBean();

    private DirectInitSingleBean() {

    }

    public static DirectInitSingleBean getInstance() {
        return INSTANCE;
    }
}
